package com.wtone.platform.gat.images.gat.core;


/**
 * @Author: aiLin
 * @Date: 2020/3/31 14:25
 * @desc: 通用常量信息
 */
public class Constants
{

    /**
     * 通用成功标识
     */
    public static final String SUCCESS          = "0";

    /**
     * 通用失败标识 其他未知错误
     */
    public static final String OTHERERROR       = "1";

    /**
     * 设备忙
     */
    public static final String BUSY             = "2";

    /**
     * 设备错误
     */
    public static final String ERROR             = "3";

    /**
     * 无效操作
     */
    public static final String OPERATION         = "4";

    /**
     * XML 格式无效
     */
    public static final String FORMATREQ         = "5";

    /**
     * XML 内容无效
     */
    public static final String FORMATRES         = "6";

    /**
     * JSON 格式无效
     */
    public static final String JSONREQ            = "7";

    /**
     * JSON 内容无效
     */
    public static final String JSONRES            = "8";

    /**
     * 系统重启中
     */
    public static final String REBOOT            = "9";

    /**
     * REQTOKEN令牌 User-Identify 存放前缀
     */
    public static final String REQTOKEN =  "User-Identify";

    /**
     * token令牌 User-Identify 存放前缀
     */
    public static final String TOKENPREFIX = "User-Identify-";

    /**
     * 订阅者存放前缀
     */
    public static final String SUBSCRIBESPREFIX = "SUBSCRIBES-";


    /***
     *  失效时间秒 5分钟
     */

    public static long expire = 300;

    /**
     *  订阅者存放库
     */
    public static final int DATABASEINDEX = 9;

    /**
     *  token User-Identify 令牌存放库
     */
    public static final int DATABASEINDEXUSER = 8;


}

